package com.yzw.hellospringcloudwebadminfeign.service;

import com.yzw.hellospringcloudwebadminfeign.service.hystrix.AdminHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Athor:Yuan
 * @Date:2020/4/6 13:57
 * Desc:
 */
@FeignClient(value = "hello-spring-cloud-service-admin",fallback = AdminHystrix.class)
public interface AdminService {
    @RequestMapping(value = "hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam("message") String message);

}
